package edu.cuit.canary.vo.mapper;

import edu.cuit.canary.po.User;
import edu.cuit.canary.vo.UserVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface UserMapper {
    UserMapper INSTANCE = Mappers.getMapper(UserMapper.class);

    //将user对象转换为UserVo，如果存在属性不一致的情况,使用@Mapping注解进行映射
    UserVo user2userVo(User user);
}
